package com.gz.droolsrule.dao;

import com.gz.droolsrule.pojo.BaseRuleConditionInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * ClassName: BaseRuleConditionInfoMapper <br/>
 * Description: <br/>
 * date: 2019/5/29 16:38<br/>
 *
 * @author gz<br />
 * @since JDK 1.8
 */
@Mapper
public interface BaseRuleConditionInfoMapper {
    /**
     * 方法说明: 根据规则获取规则条件信息
     *
     * @param baseRuleConditionInfo 参数
     */
    List<BaseRuleConditionInfo> findBaseRuleConditionInfoList(BaseRuleConditionInfo baseRuleConditionInfo);

    /**
     * 方法说明: 根据规则获取对应的条件信息
     *
     * @param ruleId 规则id
     */
    List<BaseRuleConditionInfo> findRuleConditionInfoByRuleId(@Param("ruleId") Long ruleId, @Param("relFlag") Integer relFlag);
}
